from typing import Any
from fastapi.responses import JSONResponse


def response_ok(results: Any):
    return JSONResponse(content={
        'code': '20000',
        'message': 'ok',
        'results': results
    })


def response_data(code: str, message: str, results: Any):
    return JSONResponse(content={
        'code': code,
        'message': message,
        'results': results
    })
